<?php

namespace app\api\controller;

use think\Controller;
use think\Db;

class Article extends Base
{
    public function index(){
//        $info = Db::table('admin')->where('id',$this->aid)->find();
        $info = Db::table('article')
//            ->where('id',['id'])
            ->select();

        return json(['code'=>'1','date'=>$info]);

    }
}